<template>
  <div class="">
    <n-table :single-line="false">
      <thead>
        <tr>
          <th>营业部（买入）</th>
          <th>买入金额</th>
          <th>卖出金额</th>
          <th>营业部（卖出）</th>
          <th>买入金额</th>
          <th>卖出金额</th>
        </tr>
      </thead>
      <tbody>
        <tr v-for="(item, idx) in data.detail" :key="idx">
          <td>{{ item.buyOrgName }}</td>
          <td>{{ CrAmount(item.buyOrgBuyTotal) }}亿</td>
          <td>{{ CrAmount(item.buyOrgSellTotal) }}亿</td>
          <td>{{ item.sellOrgName }}</td>
          <td>{{ CrAmount(item.sellOrgBuyTotal) }}亿</td>
          <td>{{ CrAmount(item.sellOrgSellTotal) }}亿</td>
        </tr>
      </tbody>
    </n-table>
  </div>
</template>
 <script lang='ts' setup>
import { CommaTransferAmount } from "../../util/index";
const props = defineProps({
  data: { type: Object },
});
const CrAmount = (text) => {
  return CommaTransferAmount(text);
};
</script>
 <style scoped>
</style>